const template = require('art-template');
const path = require('path');
//template方法用来拼接字符串
//1.模板路径 绝对路径
//2.要在模板中显示的数据 对象类型
//返回拼接好的数据
const views = path.join(__dirname,'views','01.art')
const html = template(views,{
  name:'张三',
  age:19,
  content:'<h2>我是标题</h2>',
  target:['html','css','javascript']
})

console.log(html)